package ch09;

class _04_CardToString {
	public static void main(String[] args) {
		Card c1 = new Card();
		Card c2 = new Card();

		System.out.println(c1.toString()); // ch09.Card@7e4ab8b9
		System.out.println(c2.toString()); // ch09.Card@5ba5ba75
	}
}

class Card {
	String kind;
	int number;

	Card() {
		this("SPADE", 1);
	}

	Card(String kind, int number) {
		this.kind = kind;
		this.number = number;
	}
}